﻿using System.Security.Principal;

namespace Authorization
{
    public class UserIdentity : IIdentity
    {
        public UserIdentity()
        {
            
        }

        public UserIdentity(string name, string authenticationType = "custom", bool isAuthenticated = false)
        {
            this.Name = name;
            this.AuthenticationType = authenticationType;
            this.IsAuthenticated = isAuthenticated;
        }

        #region IIdentity Members

        public string AuthenticationType { get; set; }
        public bool IsAuthenticated { get; set; }
        public string Name { get; set; }

        #endregion
    }
}